const modulesFiles = require.context("../api", true, /\.js$/);

const modules = modulesFiles.keys().reduce((modules, modulePath) => {
    
    const value = modulesFiles(modulePath);

    modules = {...modules,...value.default};

    return modules;

}, {});

export default modules